import axios from "axios";

const request = axios.create({
  timeout: 1000 * 10,
});

request.interceptors.response.use(
  (response) => {
    const { data } = response;

    return data;
  },
  (error) => {
    return Promise.reject(error);
  }
);

export default request;